/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.biblioteca.service;

import com.biblioteca.beans.TipoPersonal;
import com.biblioteca.dao.TipoPersonalDAO;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Jesus
 */
@Service
public class TipoPersonalService {
    
    @Autowired
    private TipoPersonalDAO iTipoPersonal;
    
    public int Insert(TipoPersonal tipoPersonal) throws Exception{
        return iTipoPersonal.Insert(tipoPersonal);
    }
    
    public List<TipoPersonal> getAll()throws Exception{
        return iTipoPersonal.getAll();
    }
    
    public int actualizar(TipoPersonal tipoPersonal)throws Exception{
        return iTipoPersonal.actualizar(tipoPersonal);
    }
    
    public int eliminar(int id)throws Exception{
        return iTipoPersonal.eliminar(id);
    }
    
    public TipoPersonal getid(int id)throws Exception{
        return iTipoPersonal.getid(id);
    }
    
}
